﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/css/base.css" rel="stylesheet" />
    <link id="easyuiTheme1" href="~/Content/EasyUI1.3.2/themes/default/easyui.css" rel="stylesheet" />
    <link id="easyuiTheme2" href="~/Content/css/themes/default/main.css" rel="stylesheet" />
    <link href="~/Content/css/icons/icon.css" rel="stylesheet" />
    @RenderSection("PageSpecificStyle", required: false)
    <!--加载脚本-->
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Content/EasyUI1.3.2/jquery.easyui.min.js"></script>
    <script src="~/Content/EasyUI1.3.2/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/jquery.cookie.js"></script>
    <script src="~/Scripts/Page/processingajaxmsg.js"></script>
    <script src="~/Scripts/Page/xzUtil.js"></script>
    <script src="~/Scripts/Page/EasyUI-Validate.js"></script>
    <script type="text/javascript">
        /*从Cookie中读取保存的主题信息*/
        function initTheme() {
            var cookie_skin = $.cookie("themeName");
            if (cookie_skin) {
                var $easyuiTheme1 = $("#easyuiTheme1");
                var $easyuiTheme2 = $("#easyuiTheme2");
                var url1 = $easyuiTheme1.attr('href');
                var url2 = $easyuiTheme2.attr('href');
                $easyuiTheme1.attr('href', url1.substring(0, url1.indexOf('themes')) + 'themes/' + cookie_skin + '/easyui.css');
                $easyuiTheme2.attr('href', url2.substring(0, url2.indexOf('themes')) + 'themes/' + cookie_skin + '/main.css');
            }
        }
        $(document).ready(function () {
            initTheme();
        });
    </script>
    @RenderSection("PageSpecificScript", required: false)
</head>
<body>
    @RenderBody()
</body>
</html>
